package com.example.avmanagerweb.entity.vo;

public class SysDevicVo {

    private String dvNum;  //设备编号
    private String dvName; //名称
    private int dvDepartmentID;  //部门ID
    private String uPhone;      //用户手机号
    private String dvCarNo;     //车牌号 可为空
    private int dvFenceID;   //围栏id 可为空
    private int dvVideoServerID = 34;//视频服务器id 默认34
    private int dvDevType = 2;     //设备类型 默认2
    private int dvOBDServerID = 33;  //终端运行服务器id 默认33
    private String dvIMEI;      //IMEI号
    private boolean dvRecordVideo = false; //后台是否录像 默认0
    private boolean dvUseFence = false; //是否使用围栏 默认0
    private boolean dvOutFenceAlarm = false;    //离开围栏报警 默认0
    private int devicNumber;
    private boolean addUser = false;                    //是否创建对应用户


    public String getDvNum() {
        return dvNum;
    }

    public void setDvNum(String dvNum) {
        this.dvNum = dvNum;
    }

    public String getDvName() {
        return dvName;
    }

    public void setDvName(String dvName) {
        this.dvName = dvName;
    }

    public int getDvDepartmentID() {
        return dvDepartmentID;
    }

    public void setDvDepartmentID(int dvDepartmentID) {
        this.dvDepartmentID = dvDepartmentID;
    }


    public String getuPhone() {
        return uPhone;
    }

    public void setuPhone(String uPhone) {
        this.uPhone = uPhone;
    }

    public String getDvCarNo() {
        return dvCarNo;
    }

    public void setDvCarNo(String dvCarNo) {
        this.dvCarNo = dvCarNo;
    }

    public int getDvFenceID() {
        return dvFenceID;
    }

    public void setDvFenceID(int dvFenceID) {
        this.dvFenceID = dvFenceID;
    }

    public int getDvVideoServerID() {
        return dvVideoServerID;
    }

    public void setDvVideoServerID(int dvVideoServerID) {
        if(dvVideoServerID == 0 ) {
            return;
        }
        this.dvVideoServerID = dvVideoServerID;
    }

    public int getDvDevType() {
        return dvDevType;
    }

    public void setDvDevType(int dvDevType) {
        if(dvDevType == 0 ) {
            return;
        }
        this.dvDevType = dvDevType;
    }

    public int getDvOBDServerID() {
        return dvOBDServerID;
    }

    public void setDvOBDServerID(int dvOBDServerID) {
        if(dvOBDServerID == 0 ) {
            return;
        }
        this.dvOBDServerID = dvOBDServerID;
    }

    public String getDvIMEI() {
        return dvIMEI;
    }

    public void setDvIMEI(String dvIMEI) {
        this.dvIMEI = dvIMEI;
    }

    public boolean isDvRecordVideo() {
        return dvRecordVideo;
    }

    public void setDvRecordVideo(boolean dvRecordVideo) {
        this.dvRecordVideo = dvRecordVideo;
    }

    public boolean isDvUseFence() {
        return dvUseFence;
    }

    public void setDvUseFence(boolean dvUseFence) {
        this.dvUseFence = dvUseFence;
    }

    public boolean isDvOutFenceAlarm() {
        return dvOutFenceAlarm;
    }

    public void setDvOutFenceAlarm(boolean dvOutFenceAlarm) {
        this.dvOutFenceAlarm = dvOutFenceAlarm;
    }

    public int getDevicNumber() {
        return devicNumber;
    }

    public void setDevicNumber(int devicNumber) {
        this.devicNumber = devicNumber;
    }

    public boolean isAddUser() {
        return addUser;
    }

    public void setAddUser(boolean addUser) {
        this.addUser = addUser;
    }

    @Override
    public String toString() {
        return "SysDevicVo{" +
                "dvNum='" + dvNum + '\'' +
                ", dvName='" + dvName + '\'' +
                ", dvDepartmentID=" + dvDepartmentID +
                ", uPhone='" + uPhone + '\'' +
                ", dvCarNo='" + dvCarNo + '\'' +
                ", dvFenceID=" + dvFenceID +
                ", dvVideoServerID=" + dvVideoServerID +
                ", dvDevType=" + dvDevType +
                ", dvOBDServerID=" + dvOBDServerID +
                ", dvIMEI='" + dvIMEI + '\'' +
                ", dvRecordVideo=" + dvRecordVideo +
                ", dvUseFence=" + dvUseFence +
                ", dvOutFenceAlarm=" + dvOutFenceAlarm +
                ", devicNumber=" + devicNumber +
                ", addUser=" + addUser +
                '}';
    }
}
